<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
	<title>Cadastro de Professor</title>
</h:head>
<h:body>
	<ui:composition template="/WEB-INF/layout/template.xhtml">
		<ui:define name="conteudo">
			<h:form>
				<p:panel header="Cadastro de Professor" id="panelCadastroProfessor"
					style="width: 550px;">
					<h:panelGrid columns="2">

						<h:outputLabel value="Nome do Professor :"
							for="input-professor-nome" />
						<h:inputText id="input-professor-nome"
							value="#{professorBean.professor.nome}" />

						<h:outputLabel value="Login do Professor :"
							for="input-professor-login" />
						<h:inputText id="input-professor-login"
							value="#{professorBean.professor.login}" />

						<h:outputLabel value="Registro do Professor :"
							for="input-professor-registro" />
						<h:inputText id="input-professor-registro"
							value="#{professorBean.professor.registro}" />

						<h:outputLabel value="Disciplina Nome:"
							for="input-professor-disciplina-nome" />
						<h:inputText id="input-professor-disciplina-nome"
							value="#{professorBean.disciplina.nome}" />
							
					<h:commandButton  value="Cadastrar" action="#{professorBean.incluirProfessor}" style="width:100px;" />
					<h:commandButton  value="Cancelar" style="width:100px;" action="home"/>

					</h:panelGrid>
					</p:panel>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>